﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKSparseDistance.ModelLayer;

namespace YJKSparseDisOfRoom.ModelLayer
{
	public class ResultBean_InRoom : ResultBean
	{
		public ResultBean_InRoom(EndPointPacker startPoint, EndPointPacker endPoint, List<XYZ> lstPoints) : base(startPoint, endPoint, lstPoints)
		{
		}

		public ResultBean_InRoom AppendPoints(ResultBean_InRoom inputBean)
		{
			return this.AppendPoints(inputBean.EndPoint, inputBean.LstPoints);
		}

		private ResultBean_InRoom AppendPoints(EndPointPacker appEndEndPoint, List<XYZ> inputLstPoints)
		{
			EndPointPacker startPoint = base.StartPoint;
			List<XYZ> list = new List<XYZ>();
			list.AddRange(base.LstPoints);
			list.AddRange(inputLstPoints);
			return new ResultBean_InRoom(startPoint, appEndEndPoint, list);
		}
	}
}
